﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"   xmlns:VMDS_GUIClient_ViewModels_Management_VMs="clr-namespace:VMDS.GUIClient.ViewModels.Management.VMs"   xmlns:VMDS_GUIClient_ViewModels_Management_OSs="clr-namespace:VMDS.GUIClient.ViewModels.Management.OSs"   x:Class="VMDS.GUIClient.Views.Management.OSs.AddOsModalDialog"
             x:Name="root"
             mc:Ignorable="d" 
             d:DesignHeight="313" d:DesignWidth="424" >
	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="/VMDS.GUIClient;component/Views/ResourceDictionary1.xaml"/>
			</ResourceDictionary.MergedDictionaries>
			
			<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
		</ResourceDictionary>
	</UserControl.Resources>
	<UserControl.Visibility>
		<Binding Converter="{StaticResource BooleanToVisibilityConverter}" Mode="TwoWay" Path="Visible"/>
	</UserControl.Visibility>
	<UserControl.DataContext>
		<VMDS_GUIClient_ViewModels_Management_OSs:OsManagementViewModel/>
	</UserControl.DataContext>
    <Grid Margin="0,1,0,-1">
        <Border Background="#90000000" Visibility="{Binding Visibility}">
        	            
            <Border BorderBrush="Black" BorderThickness="1" Background="AliceBlue" 
                        CornerRadius="10,0,10,0" VerticalAlignment="Center"
                       HorizontalAlignment="Center" Height="210.23" Width="269.18">
                
               
                
                <Grid Margin="10">
                    
                    <Grid.RowDefinitions>
                        
                        <RowDefinition />
                        
                        <RowDefinition Height="Auto" MinHeight="154.615" />
                        
                    </Grid.RowDefinitions>
                    <ProgressBar Margin="8,0,8,54.23" Grid.Row="1" Value="{Binding Instance.OperProgress}" Height="20.385" VerticalAlignment="Bottom"/>
                    <Button Grid.Column="0" HorizontalAlignment="Right" Height="22" Margin="0,40,15.59,0" Grid.Row="1" Style="{DynamicResource GreenButton}" VerticalAlignment="Top" Width="56" Content="Обзор..." Click="Button_Click"/>
                    <TextBox x:Name="PathBox" Height="22" Margin="8,40,87.59,0" Grid.Row="1" TextWrapping="Wrap" Text="{Binding Instance.NewOsPath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top"/>
                    <Button Grid.Column="0" Height="22" Margin="23.59,0,0,0" Grid.Row="1" Style="{DynamicResource GreenButton}" VerticalAlignment="Bottom" Content="Добавить" HorizontalAlignment="Left" Width="80" Command="{Binding Instance.AddOs, Mode=OneWay}"/>
                    <Button x:Name="CancelBut" Grid.Column="0" HorizontalAlignment="Right" Height="22" Margin="0,0,15.59,0" Grid.Row="1" Style="{DynamicResource GreenButton}" VerticalAlignment="Bottom" Width="72" Content="Отмена" Command="{Binding Instance.Cancel, Mode=OneWay}"/>
                    <TextBox x:Name="PathBox_Copy" Height="22" Margin="8,0,15.59,-8" TextWrapping="Wrap" Text="{Binding Instance.NewOsName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Bottom"/>
                    <TextBlock HorizontalAlignment="Left" Height="15.615" Margin="8,0,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="111.59"><Run Language="ru-ru" Text="Название"/></TextBlock>
                    <TextBlock HorizontalAlignment="Left" Height="15.615" Margin="8,20.385,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="111.59" Grid.Row="1"><Run Language="ru-ru" Text="Путь к файлу"/></TextBlock>
                    <TextBlock Height="15.615" Margin="8,0,8,34.615" TextWrapping="Wrap" VerticalAlignment="Bottom" Grid.Row="1" TextAlignment="Center" FontWeight="Bold" Foreground="#FFEB1010" Text="{Binding Instance.OperMessage}"/>
                    
                </Grid>
                
            </Border>
            
        </Border>
        
    </Grid>

</UserControl>
